home *** CD-ROM | disk | FTP | other *** search
- Path: accursio.comune.bologna.it!usenet
- From: Enrico Persiani <vos0225@iperbole.bologna.it>
- Newsgroups: comp.lang.c
- Subject: Re: Converting to "FULL" ASCII
- Date: Mon, 11 Mar 1996 21:25:27 +0100
- Organization: Progetto Iperbole - Comune di Bologna - Italy
- Message-ID: <31448C37.2D38@iperbole.bologna.it>
- References: <4i0prp$tn6@lantana.singnet.com.sg>
- NNTP-Posting-Host: itiav.comune.bologna.it
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0GoldB1 (Win95; I)
- CC: vos0225@iperbole.bologna.it
-
- Charles Lai wrote:
- >
- > Hi... Does anyone know how to convert an integer 0-255 to its extended
- > ASCII representation?
- >
- > toascii only convert up to 127....try this:
-
- unsigned char cExtAscii;
-
- cExtAscii = (unsigned char) nMyIntNum; /* where nMyIntNum is an integer from 0 to 255 */
-
- --
- Enrico Persiani
- Computer Science Student
-
- e-mail: vos0225@iperbole.bologna.it
- address: Via A. Saffi 6
- Bologna (BO), 40131
- ITALY
-